package com.chat.admin.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.io.Resource;

import java.time.Duration;

@Data
@ConfigurationProperties(prefix = "char.jwt")
public class JwtProperties {
    //密钥路径
    private Resource location;
    //密钥文件密码
    private String password;
    //密钥别名
    private String alias;
    //过期时间 1h
    private Duration accessTokenTTL;
    //过期时间 12h
    private Duration refreshTokenTTL;
}
